//
//  ZZTableViewModel.h
//  zhengzai-tv
//
//  Created by SC on 16/6/20.
//  Copyright © 2016年 zhengzai.tv. All rights reserved.
//

#import "ZZBaseViewModel.h"
#import "MJRefresh/MJRefresh.h"

@interface ZZTableViewModel : ZZBaseViewModel

@property (nonatomic, strong)UITableView *ownerTableView;
@property (nonatomic, strong) NSArray *dataSource;
@property (nonatomic, copy) NSArray *sectionIndexTitles;

@property (nonatomic, assign) NSUInteger page;
@property (nonatomic, assign) NSUInteger perPage;
@property (nonatomic, assign) NSUInteger total;

@property (nonatomic, assign) BOOL shouldPullToRefresh;
@property (nonatomic, assign) BOOL shouldInfiniteScrolling;

- (void)didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

- (void)requestRemoteDataWithPage:(NSInteger)page;

- (void)endRefresh;

@end
